package com.kangyi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Blank
 * @since 2025-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("nursing_home_booking")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class NursingHomeBooking implements Serializable {

    //0待审核，1同意，2拒绝，3取消
    public static final Integer PENDING_REVIEW = 0;
    public static final Integer AGREE = 1;
    public static final Integer REFUSE = 2;
    public static final Integer CANCEL = 3;


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer nursingHomeId;

    private String name;

    private String phone;

    private Integer number;

    private String notes;

    private LocalDate bookingTime;

    private Integer status;

    private String reason;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer createUser;

    private Integer updateUser;


}
